package net.shopxx.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 航班信息
 * @author Administrator
 *
 */
@Entity
public class Flight extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2719720721762229835L;

	// Y 航空公司代码
	private String carrier;
	// Y 航班号
	private String flightNo;
	// Y 离港城市代码
	private String fromCity;
	// Y 到港城市代码
	private String arriveCity;
	// Y 舱位代码
	private String classCode;
	// Y 公布舱价格
	private String yPrice;
	// Y 舱位价格
	private String classPrice;
	// Y 燃油费
	private String fuelSurTax;
	// Y 机场建设费
	private String airportTax;
	// Y 离港日期
	private String departureDate;
	// Y 离港时间
	private String departureTime;
	// Y 到港日期
	private String arrivalDate;
	// Y 到港时间
	private String arrivalTime;

	private AirOrder airOrder;// 订单

	public String getCarrier() {
		return carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getArriveCity() {
		return arriveCity;
	}

	public void setArriveCity(String arriveCity) {
		this.arriveCity = arriveCity;
	}

	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	public String getYPrice() {
		return yPrice;
	}

	public void setYPrice(String price) {
		yPrice = price;
	}

	public String getClassPrice() {
		return classPrice;
	}

	public void setClassPrice(String classPrice) {
		this.classPrice = classPrice;
	}

	public String getFuelSurTax() {
		return fuelSurTax;
	}

	public void setFuelSurTax(String fuelSurTax) {
		this.fuelSurTax = fuelSurTax;
	}

	public String getAirportTax() {
		return airportTax;
	}

	public void setAirportTax(String airportTax) {
		this.airportTax = airportTax;
	}

	public String getDepartureDate() {
		return departureDate;
	}

	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}

	public String getDepartureTime() {
		return departureTime;
	}

	public void setDepartureTime(String departureTime) {
		this.departureTime = departureTime;
	}

	public String getArrivalDate() {
		return arrivalDate;
	}

	public void setArrivalDate(String arrivalDate) {
		this.arrivalDate = arrivalDate;
	}

	public String getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(String arrivalTime) {
		this.arrivalTime = arrivalTime;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = false)
	public AirOrder getAirOrder() {
		return airOrder;
	}

	public void setAirOrder(AirOrder airOrder) {
		this.airOrder = airOrder;
	}
	
	

}
